package cn.xzhang.boot.model.dto.wallpaperDownloadRecord;

import cn.xzhang.boot.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;


import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 壁纸下载记录分页请求
 *
 * @author <a href="https://github.com/XiaoZhangCode">XiaoZhangCode</a>
 */
@Data
@Schema(description = "壁纸下载记录分页请求")
@EqualsAndHashCode(callSuper = true)
public class WallpaperDownloadRecordPageReqDTO extends PageParam implements Serializable {



    @Schema(description = "id")
    private Long id;



    @Schema(description = "壁纸id")
    private Long wallpaperId;


    @Schema(description = "用户id")
    private Long userId;


    @NotNull(message = "下载时间不能为空")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "下载时间",requiredMode = Schema.RequiredMode.REQUIRED)
    private java.util.Date downloadTime;


    @NotNull(message = "下载次数不能为空")
    @Schema(description = "下载次数",requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer downloadCount;


    @NotNull(message = "最后一次下载时间不能为空")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "最后一次下载时间",requiredMode = Schema.RequiredMode.REQUIRED)
    private java.util.Date lastDownloadTime;

}
